package com.xbongbong.paas.pojo.workflow.operate.dto;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 工作流重新提交DTO
 * @author 魏荣杰
 *
 */
@Getter
@Setter
public class WorkflowCommitAgainDTO extends BaseDTO {

    private static final long serialVersionUID = -1450694676710358075L;

    /**
     * 流程任务节点id
     */
    @NotNull(message = "{dto.msg.processNodeTaskUpdate.processNodeTaskId.NotNull}")
    private Long taskNodeId;

    /**
     * 表单数据
     */
    @Getter(onMethod_ = {@QueryIgnore})
    @NotNull(message = "{enum.errorCode.msg.api_error_100015}")
    private JSONObject dataList;

    /**
     * 线索转换新建客户时，会传这个线索的id和是否将线索跟进记录带到客户的标识
     */
    private Long clueId;
    private Integer isBringCustomer;

    private String serialNo;
}
